/**
 * Materia.java
 */

 /**
 *  AdSec: Administrador de Secundarias
 *  Copyright (C) 2009 Daniela Ramírez Chaves (dannyrch@gmail.com)
 *  Copyright (C) 2009 Leonel Salazar Valverde (leo87sv@gmail.com)
 *
 *  This file is part of AdSec.
 *  AdSec is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  AdSec is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with AdSec.  If not, see <http://www.gnu.org/licenses/>.
 */

package adsec.entidades;


public class Materia {

    // <editor-fold defaultstate="collapsed" desc="Constantes de Nombres de Columnas">
    public final static String nombreTabla = "materia";
    public static final String idMateriaNC = "id_materia";
    public static final String nombreNC = "nombre";
    public static final String nivelNC = "nivel";
    public static final String idRequisitoNC = "id_requisito";
    public static final String tipoMateriaNC = "tipo_materia";
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Atributos privados de la clase">
    private int idMateria;
    private String nombre;
    private int nivel;
    private int tipoMateria;
    // </editor-fold>

    public static int MATERIA_NULA = 0;
    public static final int NORMAL = 0;
    public static final int ESPECIAL = 1;
    public static final int TECNOLOGIA = 2;
    public static final String [] tiposMaterias = {"Normal", "Especial", "Tecnología"};

    public Materia(){
        this.idMateria = MATERIA_NULA;
        this.nombre = "";
        this.nivel = MATERIA_NULA;
        this.tipoMateria = NORMAL;
    }//fin de constructor

    public Materia(MateriaCursada materiaCursada){
        this.idMateria = materiaCursada.getIdMateria();
        this.nombre = materiaCursada.getNombre();
        this.nivel = materiaCursada.getNivel();
    }//fin de constructor

    /**
     * @return the idMateria
     */
    public int getIdMateria() {
        return idMateria;
    }

    /**
     * @param idMateria the idMateria to set
     */
    public void setIdMateria(int idMateria) {
        this.idMateria = idMateria;
    }

    /**
     * @return the nombre
     */
    public String getNombre() {
        return nombre;
    }

    /**
     * @param nombre the nombre to set
     */
    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    /**
     * @return the nivel
     */
    public int getNivel() {
        return nivel;
    }

    /**
     * @param nivel the nivel to set
     */
    public void setNivel(int nivel) {
        this.nivel = nivel;
    }

    /**
     * @return the tipoMateria
     */
    public int getTipoMateria() {
        return tipoMateria;
    }

    /**
     * @param tipoMateria the tipoMateria to set
     */
    public void setTipoMateria(int tipoMateria) {
        this.tipoMateria = tipoMateria;
    }

}//fin de materia
